package com.mall.service;

import com.mall.entity.MmallCategory;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mall.entity.vo.CategoryVo;
import com.mall.utils.R;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ppmall
 * @since 2021-09-19
 */
public interface MmallCategoryService extends IService<MmallCategory> {
    List<CategoryVo> getCategoryNestedList(Boolean withProduct);

    boolean saveCategory(MmallCategory category);

    boolean updateCategory(MmallCategory category);

    boolean deleteCategory(int id);
}
